package com.gitee.hljdrl.ffkit.app;

import android.content.Intent;
import android.graphics.Color;
import android.view.View;

import androidx.appcompat.widget.Toolbar;
import com.gitee.hljdrl.ffkit.R;
import com.gitee.hljdrl.ffkit.basis.FFKitEvent;
import com.gitee.hljdrl.ffkit.databinding.FfkitAboutActivtyBinding;

public class FFKitAboutActivity extends FFKitActivity {

    private FfkitAboutActivtyBinding mBinding;

    @Override
    public View getBindingView() {
        mBinding = FfkitAboutActivtyBinding.inflate(getLayoutInflater());
        return mBinding.getRoot();
    }

    @Override
    public void initView() {
        Intent intent = getIntent();
        //
        Toolbar toolbar = findViewById(R.id.tool_bar);
        toolbar.setTitle(intent.getStringExtra(FFKitEvent.KEY_TITLE));
        setSupportActionBar(toolbar);
        if (getSupportActionBar() != null) {
            getSupportActionBar().setDisplayHomeAsUpEnabled(true);//这2行是设置返回按钮的
            getSupportActionBar().setDisplayShowHomeEnabled(true);
        }
        toolbar.getNavigationIcon().setTint(Color.WHITE);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

    @Override
    public void initData() {

    }

    @Override
    public void initListener() {

    }
}
